<div id="preject">
    <div id="btn"> <a href="{:url('excelapartment')}">导出</a><a href="{:url('add')}?d=1">添加</a></div>

    <form style="margin-top: 10px" action="{:url('putapartment')}" method="post" enctype="multipart/form-data">
        <input  class="input" type="file" name="file"/>
        <input  class="btn" type="submit">
    </form>


    <div id="table" style="margin-top: 20px">
    <table>
        <tr><th>序号</th> <th>部门ID</th> <th>部门名称</th> <th></th> <th></th>
        </tr>
        {foreach $apartment as $k=>$v}
        <tr><td>{$apartment->currentPage()*30-30+$k+1}</td> <td>{$v.uid}</td> <td>{$v.apartment}</td>   <td><a href="{:url('editor')}?id={$v.id}&d=1">编辑</a></td> <td><a href="{:url('deleteapartment')}?id={$v.id}" onclick="javascript:if(confirm('确定删除吗？')){return true;}return false;">删除</a></td></tr>
        {/foreach}

    </table>
    </div>
    <div id="page">{$apartment}</div>
</div>